public class work7 {
    public static void main(String args[]) {
        int i,sum = 0;
        for ( i = 1; sum < 8888; i++) {
            sum += i;
        }
        System.out.println(i-1);
    }
}